package com.jd.finance.core.service;

import com.jd.finance.core.pojo.entity.Contract;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jd.finance.result.BaseResult;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 劳动合同表 服务类
 * </p>
 *
 * @author LiQingBo
 * @since 2022-05-25
 */
public interface ContractService extends IService<Contract> {

    /**
     * 添加合同信息
     *
     * @param hrId           HR id
     * @param uid            用户id
     * @param contBegTime    合同开始时间
     * @param contFinishTime 合同结束时间
     * @param request        servlet请求
     * @return
     */
    BaseResult addContract(@Param("hrId") Integer hrId, @Param("uid") Integer uid, @Param("contBegTime") String contBegTime, @Param("contFinishTime") String contFinishTime, @Param("request") HttpServletRequest request);
}
